﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BUS;
using DTO;
namespace CungMuaC5.WebUC
{
    public partial class wucTop5TheoLoai : System.Web.UI.UserControl
    {
        BUS_KhuyenMai bus_KhuyenMai = new BUS_KhuyenMai();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string makm = Request.QueryString["MaKM"];
                DataListTop10.DataSource = bus_KhuyenMai.SelectTop10(makm);
                DataListTop10.DataBind();
            }
            else
            {
                //string makm = Request.QueryString["MaKM"];
                //DataListTop10.DataSource = bus_KhuyenMai.SelectTop10(makm);
                //DataListTop10.DataBind();
            }
        }
    }
}